﻿<UserControl x:Class="InTheHand.ApplicationModel.Search.SearchPanel"
             x:ClassModifier="internal"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    mc:Ignorable="d"        
    d:DesignHeight="100" d:DesignWidth="480" MinWidth="480" HorizontalAlignment="Stretch" >
	<UserControl.Resources>
		<Storyboard x:Name="Show">
			<DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.GlobalOffsetY)" Storyboard.TargetName="LayoutRoot">
				<EasingDoubleKeyFrame KeyTime="0" Value="-100">
					<EasingDoubleKeyFrame.EasingFunction>
						<CubicEase EasingMode="EaseInOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
				<EasingDoubleKeyFrame KeyTime="0:0:0.3" Value="0">
					<EasingDoubleKeyFrame.EasingFunction>
						<CubicEase EasingMode="EaseInOut"/>
					</EasingDoubleKeyFrame.EasingFunction>
				</EasingDoubleKeyFrame>
			</DoubleAnimationUsingKeyFrames>
		</Storyboard>
		<Storyboard x:Name="Hide">
			<DoubleAnimation Duration="0:0:0.3" To="-100" Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.GlobalOffsetY)" Storyboard.TargetName="LayoutRoot" d:IsOptimized="True">
				<DoubleAnimation.EasingFunction>
					<CubicEase EasingMode="EaseInOut"/>
				</DoubleAnimation.EasingFunction>
			</DoubleAnimation>
		</Storyboard>
	</UserControl.Resources>


    <Grid x:Name="LayoutRoot" HorizontalAlignment="Stretch">
    	<Grid.Projection>
    		<PlaneProjection/>
    	</Grid.Projection>
        <Rectangle x:Name="BackgroundFill" Fill="{StaticResource PhoneBackgroundBrush}" Margin="24,40,24,24"/>
        <toolkit:PhoneTextBox VerticalAlignment="Top" x:Name="SearchBox" Margin="12,28,12,12" InputScope="Search"/>
    </Grid>
</UserControl>